neuron Carrier Experience API icon

neuron Carrier Experience API

(0 reviews)

Errors

⚠️ Error Handling Guide β€” Neuron Carrier Experience API

This page explains the different error types you may encounter when interacting with the Neuron Carrier Experience API.

Each error includes an HTTP status code, an optional custom Neuron error code, and a descriptive message to help diagnose issues quickly.


🧩 Error Codes Overview

HTTP StatusDescription
400Bad Request
401Unauthorized
403Forbidden
404Not Found
405Method Not Allowed
429Too Many Requests
500Internal Server Error
502Bad Gateway
503Service Unavailable
504Gateway Timeout

πŸ› οΈ Error Response Structure

Most errors follow a standard Neuron error format (except some 401 responses):

{
  "code": "carrier_id_mismatch",
  "message": "Carrier Id mismatch. Seek admin support",
  "timestamp": "2023-07-05T12:25:15.283Z",
  "correlationId": "d714a266-b58a-4af3-b42c-4ca2bc90ce8b",
  "source": {
    "name": "carrier-experience-api-v1",
    "layer": "API_EXPERIENCE"
  }
}

πŸ” Detailed Error Explanations

❗ 400 β€” Bad Request

Returned when the request is malformed or missing required data.

{
  "code": "bad_request",
  "message": "Bad Request. Multiple error types detected, see causes for more details",
  "timestamp": "2023-07-05T12:23:41.046Z",
  "correlationId": "f6336636-cfad-49b8-87b7-b9954f04c925",
  "source": {
    "name": "carrier-experience-api-v1",
    "layer": "API_EXPERIENCE"
  },
  "causes": [
    {
      "code": "data_validation",
      "message": "/exposure required key not found"
    }
  ]
}

πŸ” 401 β€” Unauthorized

Returned when authentication fails.

{ "error": "Invalid Client Id" }
{ "error": "Invalid Token" }
{ "error": "Authentication denied." }

⚠️ 401 responses do not use the standard error structure.


🚫 403 β€” Forbidden

Returned when authentication succeeds but the caller does not have access rights.

{
  "code": "carrier_id_mismatch",
  "message": "Carrier Id mismatch. Seek admin support",
  "timestamp": "2023-07-05T12:25:15.283Z",
  "correlationId": "d714a266-b58a-4af3-b42c-4ca2bc90ce8b",
  "source": {
    "name": "carrier-experience-api-v1",
    "layer": "API_EXPERIENCE"
  }
}

πŸ”Ž 404 β€” Not Found

Returned when a referenced carrier-related resource cannot be located.

{
  "code": "carrier_not_found",
  "message": "No carrier found with details provided.",
  "timestamp": "2023-07-05T12:24:31.987Z",
  "correlationId": "57aa32cc-9361-45a4-b19e-5436831bf22a",
  "source": {
    "name": "carrier-experience-api-v1",
    "layer": "API_EXPERIENCE"
  }
}

🚧 405 β€” Method Not Allowed

Returned when the HTTP method is not supported.


⏱️ 429 β€” Too Many Requests

Returned when rate limits are exceeded.

{ "error": "Quota has been exceeded" }

πŸ’₯ 500 β€” Internal Server Error

General server-side failure.


πŸ”„ 502 β€” Bad Gateway

Returned when an upstream dependency fails.


πŸ›‘ 503 β€” Service Unavailable

Used during system downtime, outages, or temporary unavailability.


⏳ 504 β€” Gateway Timeout

Returned when a downstream service takes too long to respond.


🧭 Custom Neuron Error Codes

Updated to replace all β€œrisk” references with β€œcarrier.”

HTTP StatusCustom CodeMeaning
404carrier_not_foundNo matching carrier found
403carrier_id_mismatchCarrier ID mismatch
503carrier_service_unavailableCarrier service unavailable
504carrier_timeoutCarrier service timeout

Example

{
  "code": "carrier_id_mismatch",
  "message": "Carrier Id mismatch. Seek admin support",
  "timestamp": "2023-07-05T12:25:15.283Z",
  "correlationId": "d714a266-b58a-4af3-b42c-4ca2bc90ce8b",
  "source": {
    "name": "carrier-experience-api-v1",
    "layer": "API_EXPERIENCE"
  }
}

πŸ†˜ Troubleshooting

If you encounter an error not listed here or need further help:

πŸ“© Contact support.neuron@wtwco.com

Include your correlationId for faster diagnostics.



Reviews